package com.start.shop.api.param.coupon;

import java.math.BigDecimal;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

import com.start.shop.modules.repository.entity.User;

import lombok.Data;

@Data
public class GetCouponByUseableParam {
	@NotBlank(message = "商品编号非法")
	private User user;
	@DecimalMin(value = "1", message = "订单金额有误") //大于1的数字
	private BigDecimal orderAmt;
	@DecimalMin(value = "1", message = "商品编号有误") //大于1的数字
	private int goodsId;
	
	private int status;  //是否可用  0-不可用 1-可用 
	
	private int pageNum=1;
	private int pageSize=25;
}
